$OpenBSD: patch-imap_sync_client_c,v 1.3 2015/04/24 14:51:26 ajacoutot Exp $

https://bugzilla.cyrusimap.org/show_bug.cgi?id=3376

--- imap/sync_client.c.orig	Fri Apr 24 02:48:16 2015
+++ imap/sync_client.c	Fri Apr 24 15:47:27 2015
@@ -623,7 +623,7 @@ static int folder_unannotation(const char *mboxname, c
 /* ====================================================================== */
 
 static int sieve_upload(const char *userid, const char *filename,
-			unsigned long last_update)
+			time_t last_update)
 {
     const char *cmd = "SIEVE";
     struct dlist *kl;
@@ -990,9 +990,9 @@ static void log_record(const char *name, struct mailbo
 		       struct index_record *record)
 {
     syslog(LOG_NOTICE, "SYNCNOTICE: %s uid:%u modseq:" MODSEQ_FMT " "
-	  "last_updated:%lu internaldate:%lu flags:(%s)",
+	  "last_updated:" MODSEQ_FMT " internaldate:" MODSEQ_FMT " flags:(%s)",
 	   name, record->uid, record->modseq,
-	   record->last_updated, record->internaldate,
+	   (modseq_t)record->last_updated, (modseq_t)record->internaldate,
 	   make_flags(mailbox, record));
 }
 
